package com.itheima.apis.review.fallback;


import com.itheima.apis.review.IReviewClient;
import com.itheima.model.common.dtos.ResponseResult;
import com.itheima.model.common.enums.AppHttpCodeEnum;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

@Component
public class IReviewClientFallBack implements IReviewClient {

    @Override
    public ResponseResult countReviewsByBookForUser(@RequestParam Integer userId) {
        return ResponseResult.errorResult(AppHttpCodeEnum.SERVER_ERROR);
    }
}
